<template>
  <div id="app">

    <router-view/>
  </div>
</template>
<script>
  import {userMessage} from "./api/personal";

  export default {
      created(){
        userMessage().then(res=>{
            // console.log(res)
            // this.personalMessage=res.data.userInfo
          if(res.data.code==0){
            console.log(res.data.userInfo)
            this.$store.commit("judgeLogin",{isLogin:true,userInfo:res.data.userInfo})
          }
        })
      }
  }
</script>
<style lang="less">
  * {
    margin: 0;
    padding: 0;
  }
#app {
  @color:#00cf8c;
 a  {
  text-decoration: none;
   color:#000000;
}
  a:hover {
color:@color;
  }
  ul li{
    list-style: none;
  }
}


</style>
